import request from '@/utils/request'
// 定义更新用户的api
export function myCateList () {
  return request({
    url: '/my/cate/list',
    method: 'GET'
  })
}

// 新增分类
export function myCateAdd (data) {
  return request({
    url: '/my/cate/add',
    method: 'post',
    data
  })
}

// 修改分类
export function myCateInfoPut (data) {
  return request({
    url: '/my/cate/info',
    method: 'PUT',
    data
  })
}
// 删除分类
export function myCateDel (id) {
  return request({
    url: '/my/cate/del',
    method: 'DELETE',
    params: {
      id
    }
  })
}
